﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Organization.ascx.cs" Inherits="NetDon.OA.Portal.Components.OrganizationTree" %>
<script language="javascript" type="text/javascript">

    function SelectedNodeChanged() {
        $get('<%=btnLoad.ClientID %>').click();
    }

    var treeview;
    function flyTreeView_onInitialized(treeviewObject) {
        treeview = treeviewObject;
    }
</script>
<NineRays:FlyTreeView ID="treeCompany"  runat="server" Height="450px"
    DrawLines="true" ContentClickExpands="false" OnPopulateNodes="treeCompany_PopulateNodes" 
    OnInitializedJavascript="flyTreeView_onInitialized" OnSelectedNodeChangedJavascript="SelectedNodeChanged">
</NineRays:FlyTreeView>
<asp:Button ID="btnLoad" runat="server" OnClick="btnLoad_Click" Style="display: none"
    CausesValidation="False" />